Rebase patches
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Mon, 23 Oct 2023 09:03:53 +0000 (11:03 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Mon, 23 Oct 2023 15:10:12 +0000 (17:10 +0200)
debian/patches/0008-Add-Debian-build-flags.patch [deleted file]
debian/patches/831.patch [deleted file]
debian/patches/gpsbabelfe_do-not-check-for-newer-version
debian/patches/htmldoc-location
debian/patches/series

diff --git a/debian/patches/0008-Add-Debian-build-flags.patch b/debian/patches/0008-Add-Debian-build-flags.patch
deleted file mode 100644 (file)
index 83345bb..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
-Date: Sun, 23 Jan 2022 22:54:24 +0100
-Subject: Add Debian build flags
-
----
- gui/app.pro | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/gui/app.pro b/gui/app.pro
-index 81385bf..d4c1ef1 100755
---- a/gui/app.pro
-+++ b/gui/app.pro
-@@ -49,6 +49,12 @@ win32-g++ {
-   QMAKE_LFLAGS_RELEASE += -static-libgcc
- }
-+QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
-+QMAKE_CFLAGS   *= $(shell dpkg-buildflags --get CFLAGS)
-+QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
-+QMAKE_CXXFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
-+QMAKE_LFLAGS   *= $(shell dpkg-buildflags --get LDFLAGS)
-+
- # Set QMAKE_TARGET_BUNDLE_PREFIX so we get the correct CFBundleIdentifier in Info.plist
- darwin:QMAKE_TARGET_BUNDLE_PREFIX=org.gpsbabel
diff --git a/debian/patches/831.patch b/debian/patches/831.patch
deleted file mode 100644 (file)
index 1ec990f..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-From 60e66d61b2cb9d238f0f6b1088ad7b78f4bc538b Mon Sep 17 00:00:00 2001
-From: tsteven4 <13596209+tsteven4@users.noreply.github.com>
-Date: Mon, 24 Jan 2022 07:09:25 -0700
-Subject: [PATCH] simpify unix world conditionals in qmake files.
-
----
- GPSBabel.pro |  4 ++--
- libusb.pri   | 10 +++++-----
- 2 files changed, 7 insertions(+), 7 deletions(-)
-
-diff --git a/GPSBabel.pro b/GPSBabel.pro
-index 98b25c7d2..0ee8522d8 100644
---- a/GPSBabel.pro
-+++ b/GPSBabel.pro
-@@ -281,7 +281,7 @@ HEADERS += $$FILTER_HEADERS
- CONFIG(release, debug|release): DEFINES *= NDEBUG
--macx|linux|openbsd {
-+unix {
-   if (equals(MAKEFILE_GENERATOR, XCODE)) {
-     # "Configure tests are not supported with the XCODE Makefile generator"
-     # assume we have the following headers
-@@ -354,7 +354,7 @@ QMAKE_EXTRA_TARGETS += check-vtesto
- QMAKE_CLEAN += $${OUT_PWD}/testo.d/*.vglog
- # build the compilation data base used by clang tools including clang-tidy.
--macx|linux|openbsd{
-+unix {
-   compile_command_database.target = compile_commands.json
-   compile_command_database.commands = $(MAKE) clean; bear $(MAKE)
-   QMAKE_EXTRA_TARGETS += compile_command_database
-diff --git a/libusb.pri b/libusb.pri
-index a6604f94b..9d589001f 100644
---- a/libusb.pri
-+++ b/libusb.pri
-@@ -1,7 +1,7 @@
--macx|linux|openbsd {
-+unix {
-   !defined(WITH_LIBUSB, var) {
--    macx: WITH_LIBUSB = included
--    linux|openbsd: WITH_LIBUSB = system
-+    mac: WITH_LIBUSB = included
-+    !mac: WITH_LIBUSB = system
-   }
-   equals(WITH_LIBUSB, no) {
-     message("libusb-1.0 disabled")
-@@ -14,7 +14,7 @@ macx|linux|openbsd {
-       PKGCONFIG += libusb-1.0
-       DEFINES += LIBUSB_H_INCLUDE=$$shell_quote(<libusb.h>)
-     } else {
--      linux|openbsd {
-+      !mac {
-         equals(WITH_LIBUSB, system) {
-           LIBS += "-lusb-1.0"
-           DEFINES += LIBUSB_H_INCLUDE=$$shell_quote(<libusb-1.0/libusb.h>)
-@@ -27,7 +27,7 @@ macx|linux|openbsd {
-         }
-       }
--      macx {
-+      mac {
-         equals(WITH_LIBUSB, included) {
-           # TODO: It would be better to create an archive and link to it
-           #       to separate library build requirements from gpsbabel requirements.
index 2d4ec51d8bcced948df5881ad9261731e458d77f..3cc0a0e56b1d18a4f4446452ddcdac67d81fd55b 100644 (file)
@@ -69,7 +69,7 @@ Disable check for newer versions on start.
      <string>Visit Website...</string>
 --- a/gui/mainwindow.cc
 +++ b/gui/mainwindow.cc
-@@ -176,7 +176,6 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent)
+@@ -175,7 +175,6 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent)
    connect(ui_.actionAbout, &QAction::triggered, this, &MainWindow::aboutActionX);
    connect(ui_.actionVisit_Website, &QAction::triggered, this, &MainWindow::visitWebsiteActionX);
    connect(ui_.actionMake_a_Donation, &QAction::triggered, this, &MainWindow::donateActionX);
@@ -77,7 +77,7 @@ Disable check for newer versions on start.
    connect(ui_.actionPreferences, &QAction::triggered, this, &MainWindow::preferencesActionX);
  
  // TODO: Qt6 deleted the obsolete overloaded signal QComboBox::currentIndexChanged(const QString &text)
-@@ -233,17 +232,6 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent)
+@@ -232,17 +231,6 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent)
    restoreSettings();
  
    upgrade = new UpgradeCheck(this, formatList_, babelData_);
@@ -95,7 +95,7 @@ Disable check for newer versions on start.
  }
  
  //------------------------------------------------------------------------
-@@ -1007,10 +995,6 @@ void MainWindow::applyActionX()
+@@ -1010,10 +998,6 @@ void MainWindow::applyActionX()
  //------------------------------------------------------------------------
  void MainWindow::closeActionX()
  {
index c20163c9a272fc6120353f1cace33b7c438c51b2..630560788919d7a1e6f2413fd7865c1a2b3f6271 100644 (file)
@@ -1,11 +1,29 @@
---- a/gbversion.h.qmake.in
-+++ b/gbversion.h.qmake.in
-@@ -14,5 +14,5 @@
- #else
- #define VERSION \"$${GB.MAJOR}.$${GB.MINOR}.$${GB.MICRO}$${GB.PACKAGE_RELEASE}\"
- constexpr char kVersionSHA[] = \"$${GB.SHA}\";
--#define WEB_DOC_DIR \"https://www.gpsbabel.org/htmldoc-$${DOCVERSION}\"
-+#define WEB_DOC_DIR \"file:///usr/share/doc/gpsbabel/html\"
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -475,8 +475,6 @@ if(UNIX AND NOT APPLE)
+                     USES_TERMINAL)
+ endif()
+-get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
+-if((CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) AND NOT _isMultiConfig)
+   set(GPSBABEL_WEB "gpsbabel.org" CACHE PATH "Path where the documentation will be stored for www.gpsbabel.org.")
+   add_custom_target(gpsbabel.org
+                     ${CMAKE_SOURCE_DIR}/tools/make_gpsbabel_org.sh ${GPSBABEL_WEB} ${GPSBABEL_DOCVERSION}
+@@ -495,6 +493,3 @@ if((CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) AND NOT _isMultiConfig)
+                     DEPENDS gpsbabel
+                     VERBATIM
+                     USES_TERMINAL)
+-else()
+-  message(WARNING "Document generation is only supported for in-source builds with single configuration generators.")
+-endif()
+--- a/gbversion.h.in
++++ b/gbversion.h.in
+@@ -16,5 +16,5 @@
+ #define VERSION "@GB.MAJOR@.@GB.MINOR@.@GB.MICRO@@GB.PACKAGE_RELEASE@"
+ constexpr char kVersionSHA[] = "@GB.SHA@";
+ constexpr char kVersionDate[] = "@GB.DATE@";
+-#define WEB_DOC_DIR "https://www.gpsbabel.org/htmldoc-@GPSBABEL_DOCVERSION@"
++#define WEB_DOC_DIR "file:///usr/share/doc/gpsbabel/html"
  #endif
 --- a/testo.d/serialization.test
 +++ b/testo.d/serialization.test
  compare_nole ${REFERENCE}/filter1.txt ${TMPDIR}/filter1.fiddled.txt
  gpsbabel -%0 > ${TMPDIR}/filter0.txt
  compare_nole ${REFERENCE}/filter0.txt ${TMPDIR}/filter0.txt
+--- a/tools/make_gpsbabel_doc.sh
++++ b/tools/make_gpsbabel_doc.sh
+@@ -1,8 +1,8 @@
+ #!/bin/sh
+ set -ex
+-perl xmldoc/makedoc
+-xmllint --noout --relaxng http://docbook.org/xml/5.0/rng/docbook.rng xmldoc/readme.xml
++perl ../xmldoc/makedoc
++xmllint --noout --relaxng /usr/share/xml/docbook/stylesheet/docbook-xsl/slides/schema/relaxng/docbook.rng ../xmldoc/readme.xml
+ # the following doesn't seem to work.
+ #xmllint --noout --schematron http://docbook.org/xml/5.0/sch/docbook.sch xmldoc/readme.xml
+ # jing and many depedencies removed from fedora
 --- a/tools/make_gpsbabel_org.sh
 +++ b/tools/make_gpsbabel_org.sh
-@@ -4,15 +4,12 @@ set -ex
- web=$1
- docversion=$2
+@@ -5,13 +5,10 @@ web=${1:-gpsbabel.org}
+ docversion=${2:-x.y.z}
+ tooldir=$(cd "$(dirname "$0")" && pwd)
  
 -mkdir -p "${web}/htmldoc-${docversion}"
 +mkdir -p "html"
- perl xmldoc/makedoc
- xmlwf xmldoc/readme.xml #check for well-formedness
- xmllint --noout --valid xmldoc/readme.xml #validate
+ "$tooldir"/make_gpsbabel_doc.sh
  xsltproc \
 -  --stringparam base.dir "${web}/htmldoc-${docversion}/" \
 +  --stringparam base.dir "html" \
    --stringparam root.filename "index" \
-   xmldoc/babelmain.xsl \
-   xmldoc/readme.xml
--tools/fixdoc "${web}/htmldoc-${docversion}" "GPSBabel ${docversion}:"
--tools/mkcapabilities "${web}" "${web}/htmldoc-${docversion}"
+-  xmldoc/babelmain.xsl \
+-  xmldoc/readme.xml
+-"${tooldir}"/fixdoc "${web}/htmldoc-${docversion}" "GPSBabel ${docversion}:"
+-"${tooldir}"/mkcapabilities "${web}" "${web}/htmldoc-${docversion}"
 -cp gpsbabel.pdf "${web}/htmldoc-${docversion}/gpsbabel-${docversion}.pdf"
++  ../xmldoc/babelmain.xsl \
++  ../xmldoc/readme.xml
+--- a/tools/make_gpsbabel_pdf.sh
++++ b/tools/make_gpsbabel_pdf.sh
+@@ -4,5 +4,5 @@ set -ex
+ tooldir=$(cd "$(dirname "$0")" && pwd)
+ "$tooldir"/make_gpsbabel_doc.sh
+-xsltproc -o gpsbabel.fo xmldoc/babelpdf.xsl xmldoc/readme.xml
++xsltproc -o gpsbabel.fo ../xmldoc/babelpdf.xsl ../xmldoc/readme.xml
+ HOME=. fop -q -fo gpsbabel.fo -pdf gpsbabel.pdf
 --- a/xmldoc/babelmain.xsl
 +++ b/xmldoc/babelmain.xsl
+@@ -4,7 +4,7 @@
+                 exclude-result-prefixes="exsl">
+-<xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl"/>
++<xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml/chunk.xsl"/>
+ <xsl:param name="use.id.as.filename">1</xsl:param>
+ <xsl:param name="chunk.first.sections">1</xsl:param>
 @@ -45,13 +45,11 @@
      <xsl:apply-imports/>
    </xsl:param>
    <xsl:value-of select="$chunk.append"/>
  </xsl:template>
  
+--- a/xmldoc/babelpdf.xsl
++++ b/xmldoc/babelpdf.xsl
+@@ -6,7 +6,7 @@
+                 exclude-result-prefixes="exsl">
+-<xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl"/>
++<xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl"/>
+ <!-- turn on extensions for newer versions of fop.  In particular, this makes
+      the XSL generate an fo bookmark-tree, which fop translates into bookmarks
 --- a/xmldoc/gpsbabel_man.xml
 +++ b/xmldoc/gpsbabel_man.xml
 @@ -127,7 +127,7 @@ or as the backend for other tools. </para>
index 233dc29fc5639d49e34c3c689d8138ef2a4cd57e..d4d1825a74f0f2a73d55e9f7b229069920681753 100644 (file)
@@ -4,6 +4,4 @@ gpsbabelfe_do-not-check-for-newer-version
 htmldoc-location
 Disable-donation-nagging
 0007-Add-workaround-for-failing-test-on-i386.patch
-0008-Add-Debian-build-flags.patch
-831.patch
 0009-Ignore-errors-during-lconvert.patch